<?php
/**
 * jishupu-cms
 * @Author:技术铺<jishupu@qq.com>
 * @Date: 2021/11/11
 */

namespace App\Http\Controllers;

use App\Services\PermissionService;
use App\Services\RouteService;

/**
 *  路由模块
 * Class RouteController
 * @package App\Http\Controllers
 */
class RouteController extends Controller
{

    /**
     * 获取权限管理模块中所需路由配置
     */
    public function permissionRouteConfig()
    {
        $data = [
            'module' => RouteService::getPermissionRouteControllerList(PermissionService::getAllController()),
            'permission' => RouteService::getPermissionRouteList(PermissionService::getAllPriv()),
        ];
        return $this->success('', $data);
    }


}
